import * as roleemployeeApi from '@/api/roleemployee'

const state = {
  roleemployeeList: {}
}
const mutations = {
  SET_ROLEEMPLOYEE_LIST(state, newValue) {
    state.roleemployeeList = newValue
  }
}

const actions = {
  async updateroleemployeeList({ commit }, params) {
    const res = await roleemployeeApi.getroleemployee(params)
    commit('SET_ROLEEMPLOYEE_LIST', res)
  }
}

export default {
  namespaced: true,
  state,
  mutations,
  actions
}
